import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes=[
    {
        path:'/Header',
        name:'Header',
        component: () => import('../components/Header')
    },
    {
        path:'/article/:categoryId',
        name:'Article',
        component: () => import('../view/article/Article')
    },
    {
        path:'/home',
        name:'Home',
        component: () => import('../view/article/Home')
    },
]
const router = new VueRouter({
    routes
})
export default router;
